package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import javax.validation.constraints.*;
import lombok.Data;

/** 组合产品包含产品 导入导出辅助模型 */
@Data
public class ProductSubExcelPo {

  @ExcelProperty(value = "所属产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品")
  private Long productId;

  @Size(max = 50, message = "产品长度不能超过20")
  @ExcelProperty(value = "产品")
  private String subIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long subId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ExcelProperty(value = "SKU")
  private String sku;

  @NumberFormat("0.00")
  @ExcelProperty(value = "采购成本")
  private java.math.BigDecimal procurementCost;

  @ExcelProperty(value = "数量")
  private Long num;
}
